/**
 * @desc: 公用复制文本组件，阻止冒泡
 * @text: 需要复制的内容
 */

import React from 'react';
import { Typography } from 'antd';

const { Paragraph } = Typography;

export default ({ text }) => {
  return (
    <Paragraph style={{ display: 'inline-block', margin: 0, padding: 0 }} copyable={{ text }} onClick={e => e.stopPropagation() } />
  )
}